package com.label.Model.Query;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.label.Model.Common.Validation.Del;
import com.label.Model.Common.Validation.Get;
import com.label.Model.Common.Validation.Save;
import com.label.Model.Common.Validation.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class PermissionQuery {

    @NotNull(message = "ID不为空",groups = {Del.class, Update.class, Get.class})
    private Long id;

    @NotBlank(message = "名字不为空！" ,groups = Save.class)
    private String name;

    @NotBlank(message = "操作码不为空！" ,groups = Save.class)
    private String perCode;

}
